import { rcaNumberFormat,get_month_first,get_date } from './common.js'
import { dateFormat } from '@/util/date';
import { commonTableOption } from './common.js'
export const startDate = get_month_first(0);
export const endDate = get_date(0);
export const tableOption = {
  ...commonTableOption,
  menu: true,
  editBtn: false,
  delBtn: false,
  refreshBtn: false,
  columnBtn: false,
  column: [{
    type: 'date',
    label: '导入时间',
    searchSpan: 12,
    //searchRange: true,
    //search: true,
    //searchValue: [startDate, endDate],      // 这是我获取的默认的显示日期，我这里是['2020-08-04', '2020-09-22']
    format: 'yyyy-MM-dd',                  // 这是组件展示的日期格式
    valueFormat: 'yyyy-MM-dd',
    prop: 'createTime'
  }, {
    type: 'input',
    label: '导入人工号',
    prop: 'submitPersonCode'
  }, {
    type: 'input',
    label: '导入人',
    prop: 'submitPersonName'
  }, {
    type: 'date',
    label: '报表统计日期开始',
    //searchSpan: 12,
    searchLabelWidth: 140,
    //searchRange: true,
    search: true,
    searchValue: startDate,      // 这是我获取的默认的显示日期，我这里是['2020-08-04', '2020-09-22']
    format: 'yyyy-MM-dd',                  // 这是组件展示的日期格式
    valueFormat: 'yyyy-MM-dd',
    prop: 'beginTime'
  }, {
    type: 'date',
    label: '报表统计日期结束',
    //searchSpan: 12,
    searchLabelWidth: 140,
    //searchRange: true,
    search: true,
    searchValue: endDate,      // 这是我获取的默认的显示日期，我这里是['2020-08-04', '2020-09-22']
    format: 'yyyy-MM-dd',                  // 这是组件展示的日期格式
    valueFormat: 'yyyy-MM-dd',
    prop: 'endTime'
  }, {
    type: "select",
    label: "线路",
    prop: "lineCode",
    // props: {
    //   label: 'name',
    //   value: 'code'
    // },
    // dicUrl: "/support/swparamline/dictAll",
    dicData: [{
      label: '9号线',
      value: '9'
    }, {
      label: '14号线机场段',
      value: '54'
    }],
    search: true,
  }, {
      type: 'select',
      label: '退换票类型',
      prop: 'reportType',
      search: true,
      searchLabelWidth: 120,
      props:{
        label:'label',
        value:'value'
      },
      dicUrl: '/admin/dict/type/ck_thp_report_type'
    }]
}
